<?php
	session_start();
	include("dboper.php");

	if(!@$_POST['akses'] == true) {
	   die('Akses langsung tidak diperbolehkan!');
	}
		
	$id = $_POST['username'];	
	$pass = $_POST['password'];	
	
	if(checkLogin($id,$pass) == 1){
		$_SESSION['username'] = $id;
		echo 'true';
	} else {
		echo 'false';	
	}
?>
